//#include <iostream>
//#include <algorithm>
//#include <vector>
//#include <cmath>
//#include <functional>
//#include <climits>
//#include <cstring>
//#include <unordered_map>
//#include <unordered_set>
//#include <map>
//#include <set>
//#include <queue>
//#include <stack>
//#include <deque>
//
//#define quickio ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
//#define endl "\n"
//
//using namespace std;
//typedef long long ll;
//
//ll solve(ll n)
//{
//	if (n == 1)
//		return n;
//	return n * solve(n - 1);
//}
//
//int main()
//{
//	ll n;
//	while (cin >> n)
//		cout << solve(n) << endl;
//	return 0;
//}